package top.soulblack.purchasesale.controller.wechat.config;

import top.soulblack.purchasesale.model.WechatEditLink;
import top.soulblack.purchasesale.model.WechatTableClassify;
import top.soulblack.purchasesale.model.WechatTableColumn;
import top.soulblack.purchasesale.model.WechatTableEdit;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class WechatEditConfig {
    //数据表配置索引,table_id索引
    public Map<Integer, WechatEditLink> tableConfig;
    //预填充数据索引,table_id索引,target_id索引source_id
    public Map<Integer, Map<Integer, Integer>> paddingData;
    //操作设计的表,table_id索引
    public Map<Integer, WechatTableClassify> tables;
    public Map<Integer, List<WechatTableColumn>> columns;
    public WechatTableEdit page;
    public Map<Integer, WechatTableClassify> linkTables;

    public WechatEditConfig(
            WechatTableEdit page,
            Map<Integer, WechatEditLink> tableConfig,
            Map<Integer, Map<Integer, Integer>> paddingData,
            Map<Integer, WechatTableClassify> tables,
            Map<Integer, List<WechatTableColumn>> columns) {
        this.page = page;
        this.tableConfig = tableConfig;
        this.paddingData = paddingData;
        this.columns = columns;
        this.tables = tables;
    }

    public WechatEditConfig(
            WechatTableEdit page,
            Map<Integer, WechatEditLink> tableConfig,
            Map<Integer, Map<Integer, Integer>> paddingData,
            Map<Integer, WechatTableClassify> tables,
            Map<Integer, List<WechatTableColumn>> columns,
            Map<Integer, WechatTableClassify> linkTables) {
        this.page = page;
        this.tableConfig = tableConfig;
        this.paddingData = paddingData;
        this.columns = columns;
        this.tables = tables;
        this.linkTables = linkTables;
    }
}
